#include <cpp_primer.h>

using namespace std;

int main()
{
    vector<int> vec{1, 2, 3};
    ostream_iterator<int> out_iter(cout, " ");
    for(auto e : vec)
        *out_iter++ = e;
        // out_iter = e;
    cout << endl;

    return 0;
}
